<extend name="Public/Dialog/Common"/>
<block name="pageContent">
    <div class="bjui-pageContent">
        <form action="__ACTION__" class="pageForm" data-toggle="validate" method="post">
            <!-- 菜单id号 -->
            <input type="hidden" name="id" value="{:I('id')}">
            <table class="table table-condensed table-hover">
                <tbody>
                <tr>
                    <td colspan="2" align="center">
                        <h3>
                            添加操作 </h3>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">标题：</label>
                        <input type="text" data-rule="required" size="20" name="title" value="{$vo.title}">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">类型：</label>
                        <select name="type">
                            <volist name="Think.config.AD_TYPE" id="v">
                                <option value="{$key}" <eq name="vo.type" value="{$key}">selected</eq>>{$v}</option>
                            </volist>
                        </select>
                        <!--<input type="text" data-rule="required" size="20" name="type" value="{$vo.type}">-->
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">跳转：</label>
                        <input type="text" data-rule="required" size="20" name="url" value="{$vo.url}">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">排序：</label>
                        <input type="text" data-rule="required" size="20" name="sort" value="{$vo.sort|default=1}">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">位置：</label>
                        <!-- 广告类型 -->
                        <if condition="$vo['type']==1||I('type')==1">
                            <select name="position">
                                <volist name="Think.config.AD_POSITION" id="v">
                                    <option value="{$key}"
                                    <eq name="vo.position" value="{$key}">selected</eq>
                                    >{$v}</option>
                                </volist>
                            </select>
                            <else/>
                            <select name="position">
                                <volist name="Think.config.FL_POSITION" id="v">
                                    <option value="{$key}"
                                    <eq name="vo.position" value="{$key}">selected</eq>
                                    >{$v}</option>
                                </volist>
                            </select>
                        </if>
                        <!--<input type="text" data-rule="required" size="20" name="position" value="{$vo.position}">-->
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">描述：</label>
                        <input type="text" data-rule="required" size="20" name="description" value="{$vo.description}">
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</block>